package cn.itcast.nems.base.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;
/**
 * <p>
 * EMS 预报名信息
 * </p>
 *
 * @author zhouwei
 * @since 2023/9/20 10:14 AM
 **/
@Data
@NoArgsConstructor
@ToString
@TableName(value = "pre_student_info")
public class PreStudentInfo {
    /** 待支付 */
    public static final int STATUS_INIT = 0;
    /** 支付完成 */
    public static final int STATUS_FINISH = 1;

    /** 没有错误 */
    public static final int ERROR_NO = 0;
    /** 身份证号重复错误 */
    public static final int ERROR_IDCARD_DUPLICATE = 1;

    /** 正常学员 */
    public static final int TYPE_NORNMAL = 0;
    /** 插班学员 */
    public static final int TYPE_INSERT = 1;

    private Integer id;// 主键
    private Integer customerId;
    private Integer studentId;
    @TableField(value = "clazzId")
    private Integer clazzId;
    @TableField(value = "payLink")
    private String payLink;
    /**就业班授课模式*/
    @TableField(value = "clazzEndModel")
    private String clazzEndModel;
    /** 对应就业班的学费，咨询师录入 */
    @TableField(value = "jobFee")
    private BigDecimal jobFee = BigDecimal.ZERO;
    /** 首次支付金额，一般基础班200押金，就业班500报名费，特殊情况咨询师自己录入 */
    @TableField(value = "firstFee")
    private BigDecimal firstFee = BigDecimal.ZERO;
    private int status = STATUS_INIT;
    private Date createDate = new Date();// 编辑时间
    /** 错误的内容，比如：学员录入的身份证冲突，该字段存储的为身份证号 */
    private String errorContent = "";
    private int error = ERROR_NO;
    /** 支付时间 */
    private Date payDate;
    /** 学员类型 */
    private int type = TYPE_NORNMAL;
    /**
     * 是否具有入学风险, 且已告知
     */
    private Boolean hasEntryClassRisk;
}
